package reading.data.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.OffsetDateTime;
import java.util.List;

/**
 * @author TXW
 * @version V1.0
 * @Title: ${file_name}
 * @date 2018/10/11 10:24
 */
@Data
@ApiModel("父级")
abstract public class AbstractBaseEntity<T> {
    @ApiModelProperty("唯一标识")
    protected Long id;
    @ApiModelProperty("创建人")
    protected Long createBy;
    @ApiModelProperty("创建人")
    protected OffsetDateTime createTime;
    @ApiModelProperty("更新人")
    protected Long updateBy;
    @ApiModelProperty("更新时间")
    protected OffsetDateTime updateTime;
    @ApiModelProperty("父级节点id")
    protected Long parentId;
    @ApiModelProperty("子集节点")
    protected List<T> children;
    @ApiModelProperty("排序字段 升序")
    protected Integer sort;
}
